package exception;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ThrowsDemo1 {
    public void some() throws IOException, AWTException{}
}
class AOO extends ThrowsDemo1{
    //可以相同,可以不抛,可以抛部分,可以抛子类,不能抛不是子类的或者父类;
    //public void some() throws IOException, AWTException{};
    //public void some(){};
    //public void some() throws IOException{};
    //public void some() throws FileNotFoundException{};
    //public void some() throws IllegalAgeException{};
    //public void some() throws Exception{};
}
